module.exports = function (e) {
  var i = [],
    t = [];
  return {
    afterStr: e
      .replace(/<img [^>]*src=['"]([^'"]+)[^>]*>/gi, function (e, r) {
        return (
          i.push(r),
          t.push(''.concat(r, '?interlace/1')),
          "<img src='".concat(r, "?imageView2/2/w/750/interlace/1/q/90' />")
        );
      })
      .replace(
        /\<img/gi,
        '<img style="max-width:100%; display: block; margin: 0 auto;pointer-events:none;"',
      )
      .replace(/\<p/gi, '<p style="line-height: 2;"'),
    imgs: i,
    afterImgs: t,
  };
};
